package org.yellow.backend.utility;

import java.util.ArrayList;

public class checkIdToStr{

    public String util(ArrayList<Boolean>list){
        StringBuilder builder = new StringBuilder();
        if(list.size()==6){
            if(list.get(0)){
                builder.append("Blood Test ");
            }
            if(list.get(1)){
                builder.append("X-Ray ");
            }
            if(list.get(2)){
                builder.append("MRI Scan ");
            }
            if(list.get(3)){
                builder.append("Urinalysis ");
            }
            if(list.get(4)){
                builder.append("ECG ");
            }
        }
        return builder.toString();
    }
}